/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package companydetail;

import java.util.ArrayList;

/**
 *
 * @author TQNINH
 */
public class EmployeeTest {
    
    
    public EmployeeTest() {
        
    }
    
    public static void main(String[] args) {
        ArrayList<Employee> emp = new ArrayList<Employee>(1);
        //ArrayList<Employee> emp = new ArrayList<>(1);
        //Generic JDK 1.7 
        //"Automatic Type Inference during the Generic Instance Creation"
        
        System.out.println("Employee Class Details:");
        System.out.println("***********************");
        emp.add(0, new Employee("Raphael John", "A001", "Team Lead"));
        emp.add(0, new Employee("Jenny Samuel", "A002", "Project Manager"));
        EmployeeDetail empObj = new EmployeeDetail();
        empObj.printCollection(emp);
        
        ArrayList<HREmployee>  empHR = new ArrayList<HREmployee>(1);
        //ArrayList<HREmployee>  empHR = new ArrayList<>(1);
        //Generic JDK 1.7 
        //"Automatic Type Inference during the Generic Instance Creation"
        System.out.println();
        System.out.println("HREmploy Class Details:");
        System.out.println("***********************");
        empHR.add(0, new HREmployee("Angelina John", "A001", "Project Manager",
                "Operations", "01"));
        empHR.add(1, new HREmployee("Susan Pitt", "A002", "Team Leader",
                "Writing", "02"));
        empObj.printDerivedCollection(empHR);
    }
}
